home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-02-16 | 1.1 KB | 35 lines | [TEXT/GEOL] |
- Item forwarded by A33 to A34
-
- Item 9861353 12-Feb-90 21:20PST
-
- From: KEMINK1 Kemink, Joost
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: Reply to double-clicking
-
- Mark,
-
- TIcon.DoMouseCommand is passed the eventInfo parameter. This parameter contains
- all the information you need. For example, if you add the following code to the
- DemoDialogs example, you will see the results in your transcript window.
-
- FUNCTION TRadioIcon.DoMouseCommand(VAR theMouse:Point;VAR info:EventInfo;
- VAR hysteresis:Point):TCommand; OVERRIDE;
- BEGIN
- {$IFC qDebug}
- Writeln('clickCount: ',info.theClickCount:1);
- Writeln('optionKey: ',info.theOptionKey);
- {$ENDC qDebug}
- DoMouseCommand:=INHERITED DoMouseCommand(theMouse,info,hysteresis);
- END;
-
- You could override DoMouseCommand and store the status of the option key and
- the clickcount in a field of your overridden icon. Then, at DoChoice time you
- can access the status and the number of clicks again.
-
- Hope this helps,
-
- Joost Kemink
-
-